package com.ddtech.business.course.query;

import com.ddtech.business.course.entity.Course;
import com.ddtech.mybatisplus.annotaion.Eq;
import com.ddtech.mybatisplus.annotaion.Like;
import com.ddtech.mybatisplus.query.WebAbstractQuery;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class CourseQuery extends WebAbstractQuery<Course> {

    @Like
    @ApiModelProperty(value = "课程名称")
    private String courseName;

    @ApiModelProperty(value = "课程名称、舞蹈类型、舞蹈标签")
    private String queryName;

    @Like
    @ApiModelProperty(value = "课程标签")
    private String source;

    @ApiModelProperty(value = "课程分类")
    private String courseType;

    @Eq
    @ApiModelProperty(value = "章节id")
    private String chapterId;

    @Eq
    @ApiModelProperty(value = "课程分类id")
    private String typeId;

    @Eq
    @ApiModelProperty(value = "讲师id")
    private String teacherId;

    @Eq
    @ApiModelProperty(value = "培训计划id")
    private String planId;

    @ApiModelProperty(value = "是否热门课程(0:否，1:是)")
    private Integer isHot;

    @ApiModelProperty(value = "是否推荐课程(0:否，1:是)")
    private Integer isRecommend;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "课程状态(0:未上线，1:已上线)")
    private Integer status;

}
